package joonany.basic.j04;

public class J04_Expression33 {

	public static void main(String[] args) {
		
		int key = 1;
		
			switch(key + 1){
			case 1 :
				System.out.println("Apples"); break;
			case 2 :
				System.out.println("Orange"); break; //key = 1 // switch key = key + 1 // 1 + 1 = 2, 따라서 case 2의 값 출력  
			case 3 :
				System.out.println("Praches"); break;
			case 4 :
				System.out.println("Plums"); break;
			default :
				System.out.println("Fruitless"); break;
			}
	}

}
